<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>SocialNews - 发现全球新鲜事</title>
    <!-- Bootstrap 5 CSS -->
    <link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.0/dist/css/bootstrap.min.css" rel="stylesheet">
    <!-- Font Awesome -->
    <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css">
    <style>
        /* 自定义样式 */
        .navbar {
            transition: all 0.3s ease;
        }
        
        .navbar.scrolled {
            background-color: rgba(255, 255, 255, 0.95);
            box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
        }
        
        .nav-link {
            position: relative;
            margin-right: 0.5rem;
            transition: all 0.2s ease;
        }
        
        .nav-link:hover {
            color: #0d6efd !important;
        }
        
        .nav-link::after {
            content: '';
            position: absolute;
            bottom: 0;
            left: 0;
            width: 0;
            height: 2px;
            background-color: #0d6efd;
            transition: width 0.3s ease;
        }
        
        .nav-link:hover::after {
            width: 100%;
        }
        
        .dropdown-menu {
            border: none;
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
            border-radius: 8px;
            padding: 0.5rem 0;
        }
        
        .dropdown-item {
            padding: 0.6rem 1.2rem;
            transition: all 0.2s ease;
        }
        
        .dropdown-item:hover {
            background-color: #f1f5f9;
            color: #0d6efd;
        }
        
        .category-card {
            transition: transform 0.3s ease, box-shadow 0.3s ease;
            height: 100%;
        }
        
        .category-card:hover {
            transform: translateY(-5px);
            box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
        }
        
        .trending-tag {
            position: relative;
            overflow: hidden;
        }
        
        .trending-tag::before {
            content: '';
            position: absolute;
            top: 0;
            left: -100%;
            width: 100%;
            height: 100%;
            background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
            animation: shine 2s infinite;
        }
        
        @keyframes shine {
            100% {
                left: 100%;
            }
        }
    </style>
</head>
<body>
    <!-- 顶部通知栏 -->
    <div class="bg-primary text-white py-2">
        <div class="container d-flex justify-content-between align-items-center">
            <div class="d-flex align-items-center">
                <i class="fas fa-bullhorn me-2"></i>
                <p class="mb-0 fs-6">欢迎来到 SocialNews - 您的一站式社交资讯平台</p>
            </div>
            <div class="d-none d-md-flex gap-3">
                <a href="#" class="text-white hover:text-light">
                    <i class="fab fa-facebook-f"></i>
                </a>
                <a href="#" class="text-white hover:text-light">
                    <i class="fab fa-twitter"></i>
                </a>
                <a href="#" class="text-white hover:text-light">
                    <i class="fab fa-instagram"></i>
                </a>
                <a href="#" class="text-white hover:text-light">
                    <i class="fab fa-linkedin-in"></i>
                </a>
            </div>
        </div>
    </div>

    <!-- 主导航栏 -->
    <nav id="mainNav" class="navbar navbar-expand-lg bg-white py-3">
        <div class="container">
            <!-- 网站Logo -->
            <a class="navbar-brand d-flex align-items-center gap-2" href="#">
                <span class="bg-primary text-white p-2 rounded fs-4">
                    <i class="fas fa-newspaper"></i>
                </span>
                <span class="fs-3 fw-bold text-dark">SocialNews</span>
            </a>
            
            <!-- 移动端菜单按钮 -->
            <button class="navbar-toggler" type="button" data-bs-toggle="collapse" data-bs-target="#navbarNav">
                <i class="fas fa-bars text-dark"></i>
            </button>
            
            <!-- 导航菜单 -->
            <div class="collapse navbar-collapse" id="navbarNav">
                <ul class="navbar-nav me-auto">
                    <li class="nav-item">
                        <a class="nav-link active text-dark fw-medium" href="#">首页</a>
                    </li>
                    <li class="nav-item dropdown">
                        <a class="nav-link dropdown-toggle text-dark fw-medium" href="#" role="button" data-bs-toggle="dropdown">
                            分类
                        </a>
                        <ul class="dropdown-menu">
                            <li><a class="dropdown-item" href="#"><i class="fas fa-globe me-2"></i>国际新闻</a></li>
                            <li><a class="dropdown-item" href="#"><i class="fas fa-building me-2"></i>财经资讯</a></li>
                            <li><a class="dropdown-item" href="#"><i class="fas fa-futbol me-2"></i>体育赛事</a></li>
                            <li><a class="dropdown-item" href="#"><i class="fas fa-film me-2"></i>娱乐八卦</a></li>
                            <li><a class="dropdown-item" href="#"><i class="fas fa-laptop-code me-2"></i>科技前沿</a></li>
                            <li><a class="dropdown-item" href="#"><i class="fas fa-heartbeat me-2"></i>健康生活</a></li>
                        </ul>
                    </li>
                    <li class="nav-item">
                        <a class="nav-link text-dark fw-medium" href="#">热门话题</a>
                    </li>
                    <li class="nav-item">
                        <a class="nav-link text-dark fw-medium" href="#">视频资讯</a>
                    </li>
                    <li class="nav-item">
                        <a class="nav-link text-dark fw-medium" href="#">社区讨论</a>
                    </li>
                </ul>
                
                <!-- 搜索框 -->
                <div class="d-flex align-items-center me-3">
                    <div class="input-group">
                        <input type="text" class="form-control rounded-pill border-right-0" placeholder="搜索新闻、话题、用户...">
                        <button class="btn btn-outline-secondary rounded-pill border-left-0" type="button">
                            <i class="fas fa-search"></i>
                        </button>
                    </div>
                </div>
                
                <!-- 用户功能区 -->
                <div class="d-flex align-items-center gap-3">
                    <button class="btn btn-outline-primary rounded-pill d-none d-md-block">
                        <i class="fas fa-pen me-1"></i> 发布
                    </button>
                    <div class="dropdown">
                        <button class="btn rounded-circle" type="button" data-bs-toggle="dropdown">
                            <img src="https://picsum.photos/id/64/200" alt="用户头像" class="rounded-circle" width="36" height="36">
                        </button>
                        <ul class="dropdown-menu dropdown-menu-end">
                            <li><a class="dropdown-item" href="#"><i class="fas fa-user me-2"></i>个人中心</a></li>
                            <li><a class="dropdown-item" href="#"><i class="fas fa-bookmark me-2"></i>我的收藏</a></li>
                            <li><a class="dropdown-item" href="#"><i class="fas fa-cog me-2"></i>设置</a></li>
                            <li><hr class="dropdown-divider"></li>
                            <li><a class="dropdown-item text-danger" href="#"><i class="fas fa-sign-out-alt me-2"></i>退出登录</a></li>
                        </ul>
                    </div>
                </div>
            </div>
        </div>
    </nav>

    <!-- 热门标签栏 -->
    <div class="bg-light py-3 border-bottom">
        <div class="container">
            <div class="d-flex items-center gap-2 overflow-x-auto pb-2 scrollbar-hide">
                <span class="text-dark fw-medium whitespace-nowrap">热门标签:</span>
                <a href="#" class="badge bg-primary text-white px-3 py-1 trending-tag">
                    人工智能大会
                </a>
                <a href="#" class="badge bg-secondary text-white px-3 py-1">
                    全球气候变化
                </a>
                <a href="#" class="badge bg-success text-white px-3 py-1">
                    新能源汽车
                </a>
                <a href="#" class="badge bg-danger text-white px-3 py-1">
                    电影节获奖名单
                </a>
                <a href="#" class="badge bg-warning text-dark px-3 py-1">
                    足球联赛最新积分榜
                </a>
                <a href="#" class="badge bg-info text-white px-3 py-1">
                    健康饮食指南
                </a>
                <a href="#" class="badge bg-dark text-white px-3 py-1">
                    经济论坛
                </a>
                <a href="#" class="badge bg-light text-dark border border-gray-300 px-3 py-1">
                    更多 <i class="fas fa-chevron-right ms-1"></i>
                </a>
            </div>
        </div>
    </div>

    <!-- 栏目展示区 -->
    <section class="py-5">
        <div class="container">
            <h2 class="text-center mb-6 fw-bold">资讯栏目</h2>
            
            <div class="row g-4">
                <!-- 国际新闻 -->
                <div class="col-md-6 col-lg-4">
                    <div class="card category-card rounded-2 overflow-hidden">
                        <div class="bg-primary text-white p-4">
                            <h3 class="card-title fs-5 fw-bold mb-0">
                                <i class="fas fa-globe me-2"></i>国际新闻
                            </h3>
                        </div>
                        <div class="card-body p-0">
                            <ul class="list-group list-group-flush">
                                <li class="list-group-item p-3 border-0 hover:bg-light transition-colors">
                                    <a href="#" class="text-decoration-none text-dark hover:text-primary">
                                        全球领导人峰会聚焦气候变化与经济复苏
                                    </a>
                                    <div class="d-flex justify-content-between mt-2 text-sm text-muted">
                                        <span><i class="far fa-clock me-1"></i> 2小时前</span>
                                        <span><i class="far fa-comment me-1"></i> 128</span>
                                    </div>
                                </li>
                                <li class="list-group-item p-3 border-0 hover:bg-light transition-colors">
                                    <a href="#" class="text-decoration-none text-dark hover:text-primary">
                                        联合国发布最新全球粮食安全报告
                                    </a>
                                    <div class="d-flex justify-content-between mt-2 text-sm text-muted">
                                        <span><i class="far fa-clock me-1"></i> 5小时前</span>
                                        <span><i class="far fa-comment me-1"></i> 87</span>
                                    </div>
                                </li>
                                <li class="list-group-item p-3 border-0 hover:bg-light transition-colors">
                                    <a href="#" class="text-decoration-none text-dark hover:text-primary">
                                        多国联合开展海洋保护行动
                                    </a>
                                    <div class="d-flex justify-content-between mt-2 text-sm text-muted">
                                        <span><i class="far fa-clock me-1"></i> 昨天</span>
                                        <span><i class="far fa-comment me-1"></i> 203</span>
                                    </div>
                                </li>
                            </ul>
                        </div>
                        <div class="card-footer bg-transparent border-0 p-3 text-center">
                            <a href="#" class="text-primary text-decoration-none fw-medium">
                                查看更多 <i class="fas fa-arrow-right ms-1"></i>
                            </a>
                        </div>
                    </div>
                </div>
                
                <!-- 财经资讯 -->
                <div class="col-md-6 col-lg-4">
                    <div class="card category-card rounded-2 overflow-hidden">
                        <div class="bg-success text-white p-4">
                            <h3 class="card-title fs-5 fw-bold mb-0">
                                <i class="fas fa-building me-2"></i>财经资讯
                            </h3>
                        </div>
                        <div class="card-body p-0">
                            <ul class="list-group list-group-flush">
                                <li class="list-group-item p-3 border-0 hover:bg-light transition-colors">
                                    <a href="#" class="text-decoration-none text-dark hover:text-success">
                                        央行发布最新金融稳定报告，市场反应积极
                                    </a>
                                    <div class="d-flex justify-content-between mt-2 text-sm text-muted">
                                        <span><i class="far fa-clock me-1"></i> 3小时前</span>
                                        <span><i class="far fa-comment me-1"></i> 312</span>
                                    </div>
                                </li>
                                <li class="list-group-item p-3 border-0 hover:bg-light transition-colors">
                                    <a href="#" class="text-decoration-none text-dark hover:text-success">
                                        科技巨头发布季度财报，营收超预期
                                    </a>
                                    <div class="d-flex justify-content-between mt-2 text-sm text-muted">
                                        <span><i class="far fa-clock me-1"></i> 6小时前</span>
                                        <span><i class="far fa-comment me-1"></i> 178</span>
                                    </div>
                                </li>
                                <li class="list-group-item p-3 border-0 hover:bg-light transition-colors">
                                    <a href="#" class="text-decoration-none text-dark hover:text-success">
                                        全球供应链调整对国际贸易的影响分析
                                    </a>
                                    <div class="d-flex justify-content-between mt-2 text-sm text-muted">
                                        <span><i class="far fa-clock me-1"></i> 昨天</span>
                                        <span><i class="far fa-comment me-1"></i> 245</span>
                                    </div>
                                </li>
                            </ul>
                        </div>
                        <div class="card-footer bg-transparent border-0 p-3 text-center">
                            <a href="#" class="text-success text-decoration-none fw-medium">
                                查看更多 <i class="fas fa-arrow-right ms-1"></i>
                            </a>
                        </div>
                    </div>
                </div>
                
                <!-- 科技前沿 -->
                <div class="col-md-6 col-lg-4">
                    <div class="card category-card rounded-2 overflow-hidden">
                        <div class="bg-info text-white p-4">
                            <h3 class="card-title fs-5 fw-bold mb-0">
                                <i class="fas fa-laptop-code me-2"></i>科技前沿
                            </h3>
                        </div>
                        <div class="card-body p-0">
                            <ul class="list-group list-group-flush">
                                <li class="list-group-item p-3 border-0 hover:bg-light transition-colors">
                                    <a href="#" class="text-decoration-none text-dark hover:text-info">
                                        新一代人工智能模型发布，性能提升显著
                                    </a>
                                    <div class="d-flex justify-content-between mt-2 text-sm text-muted">
                                        <span><i class="far fa-clock me-1"></i> 1小时前</span>
                                        <span><i class="far fa-comment me-1"></i> 426</span>
                                    </div>
                                </li>
                                <li class="list-group-item p-3 border-0 hover:bg-light transition-colors">
                                    <a href="#" class="text-decoration-none text-dark hover:text-info">
                                        量子计算研究取得突破性进展
                                    </a>
                                    <div class="d-flex justify-content-between mt-2 text-sm text-muted">
                                        <span><i class="far fa-clock me-1"></i> 4小时前</span>
                                        <span><i class="far fa-comment me-1"></i> 289</span>
                                    </div>
                                </li>
                                <li class="list-group-item p-3 border-0 hover:bg-light transition-colors">
                                    <a href="#" class="text-decoration-none text-dark hover:text-info">
                                        新能源技术创新推动绿色转型加速
                                    </a>
                                    <div class="d-flex justify-content-between mt-2 text-sm text-muted">
                                        <span><i class="far fa-clock me-1"></i> 昨天</span>
                                        <span><i class="far fa-comment me-1"></i> 198</span>
                                    </div>
                                </li>
                            </ul>
                        </div>
                        <div class="card-footer bg-transparent border-0 p-3 text-center">
                            <a href="#" class="text-info text-decoration-none fw-medium">
                                查看更多 <i class="fas fa-arrow-right ms-1"></i>
                            </a>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </section>

    <!-- Bootstrap 5 JS Bundle with Popper -->
    <script src="https://cdn.jsdelivr.net/npm/bootstrap@5.3.0/dist/js/bootstrap.bundle.min.js"></script>
    <script>
        // 导航栏滚动效果
        window.addEventListener('scroll', function() {
            const navbar = document.getElementById('mainNav');
            if (window.scrollY > 50) {
                navbar.classList.add('scrolled');
            } else {
                navbar.classList.remove('scrolled');
            }
        });
        
        // 初始化标签页和下拉菜单
        document.addEventListener('DOMContentLoaded', function() {
            // 激活第一个导航项
            const activeNav = document.querySelector('.nav-link.active');
            if (activeNav) {
                activeNav.classList.add('text-primary');
                activeNav.classList.remove('text-dark');
            }
        });
    </script>
</body>
</html>

